Optimal. Leaf size=208 \[ \frac{c^2 x (d x-c)^{3/2} (c+d x)^{3/2} \left (8 a d^2+5 b c^2\right )}{64 d^6}+\frac{x^3 (d x-c)^{3/2} (c+d x)^{3/2} \left (8 a d^2+5 b c^2\right )}{48 d^4}-\frac{c^6 \left (8 a d^2+5 b c^2\right ) \tanh ^{-1}\left (\frac{\sqrt{d x-c}}{\sqrt{c+d x}}\right )}{64 d^7}+\frac{c^4 x \sqrt{d x-c} \sqrt{c+d x} \left (8 a d^2+5 b c^2\right )}{128 d^6}+\frac{b x^5 (d x-c)^{3/2} (c+d x)^{3/2}}{8 d^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.476242, antiderivative size = 208, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.226 \[ \frac{c^2 x (d x-c)^{3/2} (c+d x)^{3/2} \left (8 a d^2+5 b c^2\right )}{64 d^6}+\frac{x^3 (d x-c)^{3/2} (c+d x)^{3/2} \left (8 a d^2+5 b c^2\right )}{48 d^4}-\frac{c^6 \left (8 a d^2+5 b c^2\right ) \tanh ^{-1}\left (\frac{\sqrt{d x-c}}{\sqrt{c+d x}}\right )}{64 d^7}+\frac{c^4 x \sqrt{d x-c} \sqrt{c+d x} \left (8 a d^2+5 b c^2\right )}{128 d^6}+\frac{b x^5 (d x-c)^{3/2} (c+d x)^{3/2}}{8 d^2} \]
Antiderivative was successfully verified.
[In] Int[x^4*Sqrt[-c + d*x]*Sqrt[c + d*x]*(a + b*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 34.3333, size = 187, normalized size = 0.9 \[ \frac{b x^{5} \left (- c + d x\right )^{\frac{3}{2}} \left (c + d x\right )^{\frac{3}{2}}}{8 d^{2}} - \frac{c^{6} \left (8 a d^{2} + 5 b c^{2}\right ) \operatorname{atanh}{\left (\frac{\sqrt{c + d x}}{\sqrt{- c + d x}} \right )}}{64 d^{7}} + \frac{c^{4} x \sqrt{- c + d x} \sqrt{c + d x} \left (8 a d^{2} + 5 b c^{2}\right )}{128 d^{6}} + \frac{c^{2} x \left (- c + d x\right )^{\frac{3}{2}} \left (c + d x\right )^{\frac{3}{2}} \left (8 a d^{2} + 5 b c^{2}\right )}{64 d^{6}} + \frac{x^{3} \left (- c + d x\right )^{\frac{3}{2}} \left (c + d x\right )^{\frac{3}{2}} \left (8 a d^{2} + 5 b c^{2}\right )}{48 d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**4*(b*x**2+a)*(d*x-c)**(1/2)*(d*x+c)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.177939, size = 146, normalized size = 0.7 \[ \frac{d x \sqrt{d x-c} \sqrt{c+d x} \left (8 a d^2 \left (-3 c^4-2 c^2 d^2 x^2+8 d^4 x^4\right )-b \left (15 c^6+10 c^4 d^2 x^2+8 c^2 d^4 x^4-48 d^6 x^6\right )\right )-3 \left (8 a c^6 d^2+5 b c^8\right ) \log \left (\sqrt{d x-c} \sqrt{c+d x}+d x\right )}{384 d^7} \]
Antiderivative was successfully verified.
[In] Integrate[x^4*Sqrt[-c + d*x]*Sqrt[c + d*x]*(a + b*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [C] time = 0.032, size = 298, normalized size = 1.4 \[{\frac{{\it csgn} \left ( d \right ) }{384\,{d}^{7}}\sqrt{dx-c}\sqrt{dx+c} \left ( 48\,{\it csgn} \left ( d \right ){x}^{7}b{d}^{7}\sqrt{{d}^{2}{x}^{2}-{c}^{2}}+64\,{\it csgn} \left ( d \right ){x}^{5}a{d}^{7}\sqrt{{d}^{2}{x}^{2}-{c}^{2}}-8\,{\it csgn} \left ( d \right ){x}^{5}b{c}^{2}{d}^{5}\sqrt{{d}^{2}{x}^{2}-{c}^{2}}-16\,{\it csgn} \left ( d \right ){x}^{3}a{c}^{2}{d}^{5}\sqrt{{d}^{2}{x}^{2}-{c}^{2}}-10\,{\it csgn} \left ( d \right ){x}^{3}b{c}^{4}{d}^{3}\sqrt{{d}^{2}{x}^{2}-{c}^{2}}-24\,a{c}^{4}x\sqrt{{d}^{2}{x}^{2}-{c}^{2}}{d}^{3}{\it csgn} \left ( d \right ) -15\,b{c}^{6}x\sqrt{{d}^{2}{x}^{2}-{c}^{2}}{\it csgn} \left ( d \right ) d-24\,a{c}^{6}\ln \left ( \left ({\it csgn} \left ( d \right ) \sqrt{{d}^{2}{x}^{2}-{c}^{2}}+dx \right ){\it csgn} \left ( d \right ) \right ){d}^{2}-15\,b{c}^{8}\ln \left ( \left ({\it csgn} \left ( d \right ) \sqrt{{d}^{2}{x}^{2}-{c}^{2}}+dx \right ){\it csgn} \left ( d \right ) \right ) \right ){\frac{1}{\sqrt{{d}^{2}{x}^{2}-{c}^{2}}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^4*(b*x^2+a)*(d*x-c)^(1/2)*(d*x+c)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.41082, size = 356, normalized size = 1.71 \[ \frac{{\left (d^{2} x^{2} - c^{2}\right )}^{\frac{3}{2}} b x^{5}}{8 \, d^{2}} + \frac{5 \,{\left (d^{2} x^{2} - c^{2}\right )}^{\frac{3}{2}} b c^{2} x^{3}}{48 \, d^{4}} + \frac{{\left (d^{2} x^{2} - c^{2}\right )}^{\frac{3}{2}} a x^{3}}{6 \, d^{2}} - \frac{5 \, b c^{8} \log \left (2 \, d^{2} x + 2 \, \sqrt{d^{2} x^{2} - c^{2}} \sqrt{d^{2}}\right )}{128 \, \sqrt{d^{2}} d^{6}} - \frac{a c^{6} \log \left (2 \, d^{2} x + 2 \, \sqrt{d^{2} x^{2} - c^{2}} \sqrt{d^{2}}\right )}{16 \, \sqrt{d^{2}} d^{4}} + \frac{5 \, \sqrt{d^{2} x^{2} - c^{2}} b c^{6} x}{128 \, d^{6}} + \frac{\sqrt{d^{2} x^{2} - c^{2}} a c^{4} x}{16 \, d^{4}} + \frac{5 \,{\left (d^{2} x^{2} - c^{2}\right )}^{\frac{3}{2}} b c^{4} x}{64 \, d^{6}} + \frac{{\left (d^{2} x^{2} - c^{2}\right )}^{\frac{3}{2}} a c^{2} x}{8 \, d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^2 + a)*sqrt(d*x + c)*sqrt(d*x - c)*x^4,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.651568, size = 976, normalized size = 4.69 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^2 + a)*sqrt(d*x + c)*sqrt(d*x - c)*x^4,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int x^{4} \left (a + b x^{2}\right ) \sqrt{- c + d x} \sqrt{c + d x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**4*(b*x**2+a)*(d*x-c)**(1/2)*(d*x+c)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.306101, size = 394, normalized size = 1.89 \[ \frac{8 \,{\left (\frac{6 \, c^{6}{\rm ln}\left ({\left | -\sqrt{d x + c} + \sqrt{d x - c} \right |}\right )}{d^{4}} +{\left ({\left (2 \,{\left ({\left (d x + c\right )}{\left (4 \,{\left (d x + c\right )}{\left (\frac{d x + c}{d^{4}} - \frac{5 \, c}{d^{4}}\right )} + \frac{39 \, c^{2}}{d^{4}}\right )} - \frac{37 \, c^{3}}{d^{4}}\right )}{\left (d x + c\right )} + \frac{31 \, c^{4}}{d^{4}}\right )}{\left (d x + c\right )} - \frac{3 \, c^{5}}{d^{4}}\right )} \sqrt{d x + c} \sqrt{d x - c}\right )} a +{\left (\frac{30 \, c^{8}{\rm ln}\left ({\left | -\sqrt{d x + c} + \sqrt{d x - c} \right |}\right )}{d^{6}} +{\left ({\left (2 \,{\left ({\left (4 \,{\left ({\left (d x + c\right )}{\left (6 \,{\left (d x + c\right )}{\left (\frac{d x + c}{d^{6}} - \frac{7 \, c}{d^{6}}\right )} + \frac{125 \, c^{2}}{d^{6}}\right )} - \frac{205 \, c^{3}}{d^{6}}\right )}{\left (d x + c\right )} + \frac{795 \, c^{4}}{d^{6}}\right )}{\left (d x + c\right )} - \frac{449 \, c^{5}}{d^{6}}\right )}{\left (d x + c\right )} + \frac{251 \, c^{6}}{d^{6}}\right )}{\left (d x + c\right )} - \frac{15 \, c^{7}}{d^{6}}\right )} \sqrt{d x + c} \sqrt{d x - c}\right )} b}{384 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^2 + a)*sqrt(d*x + c)*sqrt(d*x - c)*x^4,x, algorithm="giac")
[Out]